package com.fzebu.fastboot.docs.file;

import java.io.File;

/**
 * @author Jack
 * @version 1.0.0
 * @create 2020/1/20 14:08
 */
public abstract class AbstractConvert implements IConvert {

    protected boolean checkFileType(FileType fileType, File file) {
        String name = file.getName();
        String suffix = name.substring(name.lastIndexOf(".") + 1);
        String type = fileType.getType();
        return type.contains(suffix);
    }
}
